package com.hb.vo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @description:
 * @projectName: zhb-frame-build
 * @author: zhouhaizhi
 * @createTime: 2021/8/17 11:57
 * @version:1.0
 */
@Data
@ApiModel("用户参数信息")
public class UserAddRequestVO {

    @ApiModelProperty(value = "用户姓名", required = true, dataType = "String")
    @NotBlank(message = "用户姓名不能为空")
    private String name;

    @ApiModelProperty(value = "登录名", required = true, dataType = "String")
    @NotBlank(message = "登录名不能为空")
    private String loginName;

    @ApiModelProperty(value = "密码", required = false, dataType = "String")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "昵称", required = false, dataType = "String")
    private String nickName;

    @ApiModelProperty(value = "生日", required = false, dataType = "Date")
    private Date birthday;

    @ApiModelProperty(value = "性别", required = false, dataType = "Integer")
    private Integer sex;

    @ApiModelProperty(value = "是否启用/禁用", required = false, dataType = "Integer")
    private Integer enabled;

}
